package org.chen.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("video_generation_record")
public class VideoGenerationRecord implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    
    @TableField("template_id")
    private String templateId;
    
    @TableField("config_id")
    private String configId;
    
    @TableField("video_id")
    private String videoId;
    
    @TableField("video_url")
    private String videoUrl;
    
    @TableField("variable_values")
    private String variableValues;
    
    private String status; // PENDING, PROCESSING, COMPLETED, FAILED
    
    @TableField("error_message")
    private String errorMessage;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
